package com.noahplat.person.feign;

import com.noahplat.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @InterfaceName: PersonFeign
 * @Description: 人员资料对外feign
 * @Author 宋彦磊
 * @Date 2021/3/25
 * @Version 1.0
 */

@FeignClient(name = "person",contextId = "personDeviceFeign")
public interface PersonDeviceFeign {

    //查询人员资料对外feign接口
    @PostMapping("/api/personDevice/inRedis")
    public Result inRedis(@RequestParam("imei") String imei,@RequestHeader("Authorization")String token);

}
